import React from 'react'
import {useNavigate} from "react-router-dom"
type Props = {}

function Xx({}: Props) {
    const Navigate=useNavigate()
    
    const btn=()=>{
        Navigate('/login')
    }
  return (
    <div>
        <button onClick={()=>btn()}>跳转</button>
    </div>
  )
}

export default Xx